#include "connectionstatusform.h"
#include "ui_connectionstatusform.h"

ConnectionStatusForm::ConnectionStatusForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ConnectionStatusForm)
{
    ui->setupUi(this);
}

ConnectionStatusForm::~ConnectionStatusForm()
{
    delete ui;
}
void ConnectionStatusForm::display(QString address, quint16 port)
{
    ui->addressLabel->setText(address);
    ui->portLabel->setText( QString::number(port) );
}

void ConnectionStatusForm::on_deconnectionButton_clicked()
{
    emit deconnectionAsked();
}
